package main

import "fmt"

var g int = 10

func scope1() {
	var l int = 20
	fmt.Println("l: ", l)

	var g int = 30
	fmt.Println("g: ", g)
}

func scope2() {
	a := 40
	{
		a := 50
		fmt.Println("a: ", a)
	}
	fmt.Println("a: ", a)
}

func main() {
	scope1()
	scope2()
}